package com.yoso.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author shizejin
 * @date 2022/6/28
 * @description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tree {
    private String code;
    private String name;
    private String parent;
    private List<Tree> childrenList;

    public Tree(String code, String name, String parent) {
        this.code = code;
        this.name = name;
        this.parent = parent;
    }
}

